package com.bulletelc.apollopre.module.deal.clearing;

import com.bulletelc.apollopre.entity.OrderDataBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2018/01/20
 * desc  : TODO
 */

public interface ClearingContract {

    interface View extends IView {
        void onSuccessPlaceOrder(OrderDataBean orderDataBean);
        void onFailPlaceOrder(String fail);
        void onErrorPlaceOrder(String error);

        void onSuccessCheckAddress(boolean b);
        void onFailCheckAddress(String fail);
        void onErrorCheckAddress(String error);
    }

    interface Presenter extends IPresenter<View> {

        void placeOrder(String json, String token);

        void checkAddress(int addressId);
    }

}
